<%--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~ Copyright (c) 2010 Ronald D. Kurr. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  either express or implied. See the License for the specific language governing permissions and limitations under
  the License.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<%--
This is the "home" page of the application and allows the user to construct a shortened URL. 
--%>
<html>
<head>
    <meta content="text/html; charset=ISO-8859-1"
          http-equiv="content-type">
    <title>Shorten your URL!</title>
</head>
<body>
<h1>Welcome</h1>
<p>This web application was created as a means for better understanding Spring MVC and Google App Engine.  Despite
the fact that this is a "toy" project, it actually works.  Once you've added a new shortened URL to the system,
this application will properly redirect all requests via the wee URL to the full URL.  Enjoy and feel free to
poke around the source code.</p>

    <form:form method="POST" action="/newURL" commandName="model" >
        <table border="0" cellpadding="2" cellspacing="2">
        <tbody>
        <tr>
            <td style="background-color: white; width: 368px;" colspan="3">
                <span>Enter your really long link here:</span>
            </td>
        </tr>
        <tr>
            <td style="width: 368px;" colspan="3"><br>
            </td>
        </tr>
        <tr>
            <td style="width: 20px;"><br>
            </td>
            <td style="background-color: rgb(255, 255, 204); width: 368px;">
                <form:input path="longUrl" size="50"/>
            </td>
            <td><input type="submit" value="Submit"/></td>
        </tr>
        <tr>
            <td style="width: 368px;" colspan="3"><br>
            </td>
        </tr>
        </tbody>
    </table>
    </form:form>
<jsp:include page="Footer.jsp"/>
</body>
</html>

